/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import com.thinkgem.jeesite.modules.hk.shop.entity.category.HkShopCategory;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 店铺管理Entity
 *
 * @author 李欣荣
 * @version 2018-10-08
 */
public class HkUserShop extends DataEntity<HkUserShop> {

    private static final long serialVersionUID = 1L;
    private HkUser user;        // 用户
    private String shopType;        // 店铺类型
    private String name;        // 店铺名称
    private String shopPassword;        // 店铺密码
    private HkShopCategory category;        // 主营类目
    private String imgSrc;        // logo
    private String commodityImgSrc;        // 商品图片
    private String commodityName;        // 商品名称
    private String commodityPrice;        // 商品价格
    private String otherShopLink;        // 第三方店铺地址
    private String referralCode;        // 入驻推荐码
    private String state;        // 状态
    private String provinceId;  //省
    private String cityId;   //市
    private String contacts; //联系人
    private String telephone; //联系电话
    private User manage;  //用户

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }

    @Length(min = 3, max = 32, message = "店铺名称长度必须介于 3 和 32 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 8, max = 16, message = "店铺密码长度必须介于 8 和 16 之间")
    public String getShopPassword() {
        return shopPassword;
    }

    public void setShopPassword(String shopPassword) {
        this.shopPassword = shopPassword;
    }

    public HkShopCategory getCategory() {
        return category;
    }

    public void setCategory(HkShopCategory category) {
        this.category = category;
    }

    @Length(min = 0, max = 200, message = "logo长度必须介于 0 和 200 之间")
    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    @Length(min = 0, max = 200, message = "商品图片长度必须介于 0 和 200 之间")
    public String getCommodityImgSrc() {
        return commodityImgSrc;
    }

    public void setCommodityImgSrc(String commodityImgSrc) {
        this.commodityImgSrc = commodityImgSrc;
    }

    @Length(min = 0, max = 32, message = "商品名称长度必须介于 0 和 32 之间")
    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    @Length(min = 0, max = 32, message = "商品价格长度必须介于 0 和 32 之间")
    public String getCommodityPrice() {
        return commodityPrice;
    }

    public void setCommodityPrice(String commodityPrice) {
        this.commodityPrice = commodityPrice;
    }

    @Length(min = 0, max = 200, message = "第三方店铺地址长度必须介于 0 和 200 之间")
    public String getOtherShopLink() {
        return otherShopLink;
    }

    public void setOtherShopLink(String otherShopLink) {
        this.otherShopLink = otherShopLink;
    }

    @Length(min = 0, max = 32, message = "入驻推荐码长度必须介于 0 和 32 之间")
    public String getReferralCode() {
        return referralCode;
    }

    public void setReferralCode(String referralCode) {
        this.referralCode = referralCode;
    }

    @Length(min = 0, max = 11, message = "状态长度必须介于 0 和 11 之间")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public User getManage() {
        return manage;
    }

    public void setManage(User manage) {
        this.manage = manage;
    }

    public HkUser getUser() {
        return user;
    }

    public void setUser(HkUser user) {
        this.user = user;
    }

    public String getShopType() {
        return shopType;
    }
}